package com.ynhenc.pta.routeRank.impl;

import java.util.*;
import java.io.*;

import com.ynhenc.comm.db.*;
import com.ynhenc.pta.routeRank.*;

public class SectionListSubway extends SectionListOracle  {
	
	public double getVelocity_MeterPerSec() {
		return KmPerHour*80.0;
	}
	
	public SectionListSubway( RouteRequest routeRequest) {
		super( TransitType.SUBWAY , routeRequest ); 
	}
	
	@Override
	public double getSearchRadius() {		
		final double defRadius = 1500;
		if ( this.getRouteRequest().getScenario() == ScenarioRandom.getScenario()) {
			// 임의의 지점인 경우.
			// 임의의 지점인 경우
			RouteRequest routeRequest = this.getRouteRequest();
			if (routeRequest == null) {
				return defRadius;
			} else {
				double radius = routeRequest.getSearchRadius(this.getTransitType());
				if (radius > 0) {
					return radius;
				} else {
					return defRadius; // 700
				}
			} 
		} else {
			return 1500;
			//return 1200;
			//return 500;
		}
	} 
	
	@Override
	public String getRouteDescription( String routeNo ) {
		return routeNo + "호선";
	}

	@Override
	public String getSqlNameRoute() {
		return "sql_100_subway_route_rad_01.sql";
	}

	@Override
	public String getSqlNamePath() {
		return "sql_102_subway_path.sql";
	}  
}
